#ifndef HEADER_WIDGET_H
#define HEADER_WIDGET_H

#include <QWidget>

namespace Ui {
class HeaderWidget;
}

class HeaderWidget : public QWidget
{
    Q_OBJECT

public:
    explicit HeaderWidget(QWidget *parent = nullptr);
    ~HeaderWidget();

    enum OperateType{OT_PAGE1 = 1, OT_PAGE2, OT_PAGE3, OT_PAGE4, OT_USER};

    void setOperateType(OperateType type);
    OperateType getOperateType() const;

signals:
    void operateChange(OperateType type);

public slots:
    void on_pushButtonPage1Clicked();
    void on_pushButtonPage2Clicked();
    void on_pushButtonPage3Clicked();
    void on_pushButtonPage4Clicked();
    void on_pushButtonUserClicked();

private:
    Ui::HeaderWidget *ui;

    OperateType operateType;
};

#endif // HEADER_WIDGET_H
